package com.woniu.guoguo.dao;

import com.woniu.guoguo.model.RestaurantImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Richie
 * @since 2020-11-02
 */
public interface RestaurantImgMapper extends BaseMapper<RestaurantImg> {

    @Select("Select img_path from restaurant_img where restaurant_id=#{id}")
    List<String> findImagesByRestId(Integer restaurantId);
}
